package com.dormitory.dormitory_management.service;

import com.dormitory.dormitory_management.domain.StudentDorm;
import com.github.pagehelper.Page;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface DormitoryService {
    public List<StudentDorm> findAll();

    public Page<StudentDorm> search(Map searchMap);

    public Boolean add(StudentDorm stuDorm);

    public StudentDorm findById(Integer id);

    public Boolean count(Integer id) throws IOException;

    public Boolean update(StudentDorm community);

    public Boolean updateStatus(String status, Integer id);

    public Boolean del(List<Integer> did);

    public Integer login(String userId, String passWord) throws IOException;

    public  Integer CountNum() throws IOException;
}